<div class="blazorise-codeblock">
<div class="html"><pre>
<span class="htmlTagDelimiter">&lt;</span><span class="htmlElementName">DataGrid</span> <span class="htmlAttributeName">TItem</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="htmlAttributeValue">Employee</span><span class="quot">&quot;</span>
          <span class="htmlAttributeName">Data</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="htmlAttributeValue">inMemoryData</span><span class="quot">&quot;</span>
          <span class="htmlAttributeName">Responsive</span>
          <span class="htmlAttributeName">ShowColumnChooser</span>
          <span class="htmlAttributeName">PagerPosition</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="enum">DataGridPagerPosition</span><span class="enumValue">.Top</span><span class="quot">&quot;</span>
          <span class="htmlAttributeName">PagerOptions</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="htmlAttributeValue">new DataGridPagerOptions() { ColumnChooserPosition = PagerElementPosition.End }</span><span class="quot">&quot;</span><span class="htmlTagDelimiter">&gt;</span>
<span class="htmlTagDelimiter">&lt;/</span><span class="htmlElementName">DataGrid</span><span class="htmlTagDelimiter">&gt;</span>
</pre></div>
<div class="csharp"><pre>
<span class="atSign">&#64;</span>code {

    [Inject] EmployeeData EmployeeData { <span class="keyword">get</span>; <span class="keyword">set</span>; }

    <span class="keyword">private</span> IEnumerable&lt;Employee&gt; inMemoryData;

    <span class="keyword">protected</span> <span class="keyword">override</span> <span class="keyword">async</span> Task OnInitializedAsync()
    {
        inMemoryData = ( <span class="keyword">await</span> EmployeeData.GetDataAsync().ConfigureAwait( <span class="keyword">false</span> ) ).Take( <span class="number">25</span> );
        <span class="keyword">await</span> <span class="keyword">base</span>.OnInitializedAsync();
    }
}
</pre></div>
</div>
